package demo2;


public class Test {
    public static void main(String[] args) {
        Animal animal = new Bird();
        animal.name = "白白";
        animal.makeSound();//发生动态绑定
        animal.sleep();//发生静态绑定
    }
}
